package com.newbsd.web.maventest.pojo;

/** 
 * @author 张成玉
 * javaBean 作用是封装数据的
 *
 */

public class User{
	/**
	 * 用户ID
	 */
	private int userid;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 用户密码
	 */
	private String password;
	/**
	 * 用户真实姓名
	 */
	private String realname;
	/**
	 * 用户性别(1、男 2、女)
	 */
	private String sex;
	/**
	 * 用户省份
	 */
	private String province;
	/**
	 * 用户城市信息
	 */
	private String city;
	/**
	 * 用户证件类型
	 */
	private String certType;
	/**
	 * 用户证件号码
	 */
	private String cert;
	/**
	 * 用户生日
	 */
	private String birthday;
	/**
	 * 旅客类型
	 */
	private String userType;
	/**
	 * 备注信息
	 */
	private String content;
	/**
	 * 用户权限（1、管理员 2、普通用户）
	 */
	private String rule;
	/**
	 * 用户状态（0、无效  1、有效 ）
	 */
	private String status;
	/**
	 * '登陆IP
	 */
	private String loginip;
	/**
	 * 用户头像路径
	 */
	private String imagepath;
	
	public User(String username, String password, String realname,
			String sex, String province, String city, String certType,
			String cert, String birthday, String userType, String content,
			String rule ) {
		super();
		this.username = username;
		this.password = password;
		this.realname = realname;
		this.sex = sex;
		this.province = province;
		this.city = city;
		this.certType = certType;
		this.cert = cert;
		this.birthday = birthday;
		this.userType = userType;
		this.content = content;
		this.rule = rule;

	}
	public User() {
		// TODO Auto-generated constructor stub
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getLoginip() {
		return loginip;
	}
	public void setLoginip(String loginip) {
		this.loginip = loginip;
	}
	public String getImagepath() {
		return imagepath;
	}
	public void setImagepath(String imagepath) {
		this.imagepath = imagepath;
	}
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		if(sex.equals("1")){
			this.sex="男";
		}
		else {
			this.sex="女";
		}
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCertType() {
		return certType;
	}
	public void setCertType(String certType) {
		if(certType.equals("1")){
			this.certType = "二代身份证";
		}
		else if(certType.equals("2")){
			this.certType = "港澳通行证";
		}
		else if(certType.equals("3")){
			this.certType = "台湾通行证";
		}
		else if(certType.equals("4")){
			this.certType = "护照";
		}
	}
	public String getCert() {
		return cert;
	}
	public void setCert(String cert) {
		this.cert = cert;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		if(userType.equals("1")){
			this.userType = "成人";
		}
		else if(userType.equals("2")){
			this.userType = "儿童";
		}
		else if(userType.equals("3")){
			this.userType = "学生";
		}
		else if(userType.equals("4")){
			this.userType = "残疾军人、伤残人民警察";
		}
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getRule() {
		return rule;
	}
	public void setRule(String rule) {
		this.rule = rule;
	}
	@Override
	public String toString() {
		return "User [userid=" + userid + ", username=" + username + ", password=" + password + ", realname=" + realname
				+ ", sex=" + sex + ", province=" + province + ", city=" + city + ", certType=" + certType + ", cert="
				+ cert + ", birthday=" + birthday + ", userType=" + userType + ", content=" + content + ", rule=" + rule
				+ ", status=" + status + ", loginip=" + loginip + ", imagepath=" + imagepath + "]";
	}
	
	
	
	
}